/* Layout */
import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV)

const statisticalRoutes = [
  {
    path: '/statistics',
    component: Layout,
    redirect: 'noredirect',
    name: 'statistics',
    meta: {
      title: '数据统计',
      icon: 'chart',
      roles: []
    },
    children: [
      {
        path: 'statistics-user-num',
        name: 'statistics-user-num',
        component: _import('statistics/members'),
        meta: {
          title: '人数统计',
          roles: ['export','virtual'/*虚拟数据查看*/] // or you can only set roles in sub nav
        }
      },
      {
        path: 'statistics-bet-recharge',
        name: 'statistics-bet-recharge',
        component: _import('statistics/betRecharge'),
        meta: {
          title: '投注充值统计',
          roles: ['export','virtual'/*虚拟数据查看*/] // or you can only set roles in sub nav
        }
      },
      {
        path: 'statistics-integral-point-recharge',
        name: 'statistics-integral-point-recharge',
        component: _import('statistics/hoursRecharge'),
        meta: {
          title: '整点充值统计',
          roles: ['export'] // or you can only set roles in sub nav
        }
      },
      // {
      //   path: 'statistics-integral-point-withdraw',
      //   name: 'statistics-integral-point-withdraw',
      //   component: _import('statistics/hoursWithdraw'),
      //   meta: {
      //     title: '整点提现统计',
      //     roles: [] // or you can only set roles in sub nav
      //   }
      // },
      {
        path: 'statistics-integral-point-bet',
        name: 'statistics-integral-point-bet',
        component: _import('statistics/hoursBet'),
        meta: {
          title: '整点投注统计',
          roles: ['export','virtual'/*虚拟数据查看*/] // or you can only set roles in sub nav
        }
      },
      // {
      //   path: 'bonus',
      //   name: 'statistics-bonus',
      //   component: _import('statistics/bonus'),
      //   meta: {
      //     title: '红利成本统计',
      //     roles: [] // or you can only set roles in sub nav
      //   }
      // },
      {
        path: 'statistics-account-balance',
        name: 'statistics-account-balance',
        component: _import('statistics/balance'),
        meta: {
          title: '账户余额统计',
          roles: ['detail','virtual'/*虚拟数据查看*/] // or you can only set roles in sub nav
        }
      },
    ]
  }
]

export default statisticalRoutes
